/**
 * 
 */
package spring.repository.Impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import spring.pojo.Employee;
import spring.repository.EmployeeCrudService;
import spring.repository.EmployeeService;

/**
 * @author CJunGod 1038804380@qq.com
 *
 */
@Service
@Transactional
public class EmployeeRepository {

	@Autowired
	private EmployeeService employeeService;
	
	@Autowired
	private EmployeeCrudService crudService;
	
	public void update(Integer id,Integer age) {
		employeeService.update(id, age);
	}
	
	public void save(List<Employee> employee) {
		crudService.save(employee);
	}
}
